package com.vecspace.sso.entity;

import javax.persistence.Column;

/** 租户
 * @author wanghua
 */
public class SSOTenantEx extends SSOTenant implements java.io.Serializable {

	private static final long serialVersionUID = 8946973555281336987L;

	public SSOTenantEx(){
	}
	
	private String companyName;
	private String groupName;
	private Integer nf;
	private String contractNumber;
	private String contractTitle;
	private String chargePerson;
	private String remark;
	private Integer lockState;
	
	@Column(name="COMPANY_NAME")
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	@Column(name="GROUP_NAME")
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	
	/**年份*/
	@Column(name="NF")
	public Integer getNf() {
		return nf;
	}
	public void setNf(Integer nf) {
		this.nf = nf;
	}
	
	@Column(name="CONTRACT_NUMBER")
	public String getContractNumber() {
		return contractNumber;
	}
	public void setContractNumber(String contractNumber) {
		this.contractNumber = contractNumber;
	}
	
	@Column(name="CONTRACT_TITLE")
	public String getContractTitle() {
		return contractTitle;
	}
	public void setContractTitle(String contractTitle) {
		this.contractTitle = contractTitle;
	}
	
	@Column(name="CHARGE_PERSON")
	public String getChargePerson() {
		return chargePerson;
	}
	public void setChargePerson(String chargePerson) {
		this.chargePerson = chargePerson;
	}
	
	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Column(name="LOCK_STATE")
	public Integer getLockState() {
		return lockState;
	}
	public void setLockState(Integer lockState) {
		this.lockState = lockState;
	}
	
	/**是否锁定*/
	public boolean isLocked() {
		if(lockState == null)return false;
		return lockState.longValue() == 1;
	}
	
}
